package tp.pr2;


public class City {
	
	private Street[] streets;
	
public City()
	{
		super();
	}

public City(Street[] cityMap)
	{
		streets=cityMap;
	}

public Street lookForStreet(Place currentPlace,
        Direction currentHeading)
	{
	if(streets!=null)
	 {	
	 for(int i=0;i<streets.length;i++)
	  	{
		  if(streets[i].comeOutFrom(currentPlace,currentHeading))
			  {
			 return streets[i];
			  }		  
	  	}
	  }
	 return null;
	}

}
